package com.chen.baopintao;

import java.util.UUID;

public class FileUtils {
	
	public static final String DEFAULT_PATH = "test/";
	
	public static String generatePath(String fileName,String basePath){
        String suffix = fileName.substring(fileName.indexOf("."));
        String path = basePath + System.nanoTime() + UUID.randomUUID() + suffix;
        return path.replace("-","");
    }

//    public static String generatePath(String fileName){
//        return generatePath(fileName,DEFAULT_PATH);
//    }
//    
   
}
